﻿using System;
using System.IO;
using System.Reflection;

namespace Xman.Dashboard.Config
{
    public class ConfigOptions
    {
        public string RoutePrefix { get; set; } = "config";

        public string AppsettingsPath { get; set; } = AppDomain.CurrentDomain.BaseDirectory + @"\appsettings.json";
        public Func<Stream> IndexStream { get; set; } = () => typeof(ConfigOptions).GetTypeInfo().Assembly.GetManifestResourceStream("Xman.Dashboard.Config.index.html");

    }
}
